package com.zkadmin.service;

import java.util.Set;

import com.zkadmin.entity.SysUser;

public interface SysUserService extends SysBaseService<SysUser> {
	public SysUser changePassword(Long id, String newPassword);

	public SysUser findByUsername(String username);

	public SysUser findByName(String name);

	public SysUser findById(Long id);

	public Set<String> findRoles(String username);

	public Set<String> findUserRoleResources(String username);

	public void correlationRoles(Long userId, Set<Long> removeRoleIds, Set<Long> roleIds);
	
	public SysUser getCurrentSysUser();
}
